import request from '@/untils/request'

export const getHeadlineNameByType = (type) => {
    return request({
        url: `/headline/selectHeadlineNameByType`,
        method: 'GET',
        params:{
            type
        }
    })
}

export const getInformNameByType = (type = '通知公告') => {
    return request({
        url: `/headline/selectHeadlineNameByType`,
        method: 'GET',
        params:{
            type
        }
    })
}

export const getOfficialNameByType = (type = '最新公文') => {
    return request({
        url: `/headline/selectHeadlineNameByType`,
        method: 'GET',
        params:{
            type
        }
    })
}

export const getKnowledgeNameByType = (type = '最热知识') => {
    return request({
        url: `/headline/selectHeadlineNameByType`,
        method: 'GET',
        params:{
            type
        }
    })
}

export const getStandardNameByType = (type = '制度规范') => {
    return request({
        url: `/headline/selectHeadlineNameByType`,
        method: 'GET',
        params:{
            type
        }
    })
}

export const addInterviewee = (form) => {
    return request({
        url: `/interviewee/add`,
        method: 'POST',
        data: form
    })
}